package com.you.atlas.web.home.module.screen;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.citrus.turbine.Context;
import com.alibaba.citrus.turbine.dataresolver.Param;
import com.you.atlas.biz.place.service.PlaceSearchService;
import com.you.common.ibatis.data.DataList;

public class Search {
    @Autowired
    private PlaceSearchService placeSearchService;

    public void execute(@Param("pageNo") int pageNo, @Param("keyword") String keyword, Context context) {

        DataList dataList = placeSearchService.search(pageNo, keyword);
        context.put("dataList", dataList);
    }
}
